package com.free.auth;

import com.utils.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

/**
 * @author jt
 * @date 2024/9/4 20:20
 */
@EnableAuthorizationServer
@SpringBootApplication( scanBasePackages = {"com.free.*"})
public class AuthApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext ac = SpringApplication.run(AuthApplication.class, args);
        SpringContextUtil.setAc(ac);
        System.out.println(SpringContextUtil.getAllBeansName());
        System.out.println("");

    }
}
